<link rel="stylesheet" href="/css/index.css" type="text/css" />
<link rel="stylesheet" href="/css/chart.css" type="text/css" />
<script type="text/javascript" src="/js/jquery.SuperSlide.2.1.1.js"></script>
<script type="text/javascript" src="/js/echarts.common.min.js"></script>
<script type="text/javascript" src="/js/macarons.js"></script>

<%= render "cip/pages/static/index/slides" %>

<!--middle start-->
<div class="grid ovf">
  <% index_categories = Cip::Category.search_by(:index).metadata['首页显示'].split(' ') %>
  <% Cip::Category.hash_tree(depth: 2).each do |category, children| %>
    <% next unless index_categories.include? category.slug %>
    <%= render "cip/pages/static/index/#{category.slug.underscore}", category: category, children: children %>
  <% end %>

  <div class="clear" style="margin-top: 20px; margin-bottom: 20px;">
    <%= raw Cip::Page.find_by(slug: 'links').content %>
  </div>
</div>
<!--middle end-->
